Scenario #1101: Add Phone Number to Contact Data

Properties

Required

Given

name value
partnerName Matthieu
phoneNumberKeyToAdd mobile
phoneNumberToAdd +49 152 1234567

partnerContactUuid

HTTP GET "/api/hs/office/relations?relationType=PARTNER&personData=Matthieu" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "dc7d5a82-2a3b-4523-a002-9f439903892a",
  "anchor" : {
    "uuid" : "806e75fe-7894-4422-86be-783107f07f3f", // Person: Hostsharing eG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Hostsharing eG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "85489e3f-ec95-4785-9d99-c0eecf7a1593", // Person: Michelle Matthieu
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Michelle",
    "familyName" : "Matthieu"
  },
  "type" : "PARTNER",
  "mark" : null,
  "contact" : {
    "uuid" : "2a4d0f8c-a478-405b-9875-2a6a4474e9c5", // Contact: Michelle Matthieu
    "caption" : "Michelle Matthieu",
    "postalAddress" : {
      "zipcode" : "22123",
      "country" : "Germany",
      "city" : "Hamburg",
      "street" : "An der Wandse 34",
      "name" : "Michelle Matthieu"
    },
    "emailAddresses" : {
      "main" : "michelle@matthieu.example.org"
    },
    "phoneNumbers" : {
      "office" : "+49 40 123456"
    }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Patch the Additional Phone-Number into the Contact

HTTP PATCH "/api/hs/office/contacts/2a4d0f8c-a478-405b-9875-2a6a4474e9c5" // Contact: Michelle Matthieu \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "phoneNumbers" : {
    "mobile" : "+49 152 1234567"
  }
}
EOF
=> status: 200 OK 

Verify if the New Phone Number Got Added

HTTP GET "/api/hs/office/relations?relationType=PARTNER&personData=Matthieu" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "dc7d5a82-2a3b-4523-a002-9f439903892a",
  "anchor" : {
    "uuid" : "806e75fe-7894-4422-86be-783107f07f3f", // Person: Hostsharing eG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Hostsharing eG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "85489e3f-ec95-4785-9d99-c0eecf7a1593", // Person: Michelle Matthieu
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Michelle",
    "familyName" : "Matthieu"
  },
  "type" : "PARTNER",
  "mark" : null,
  "contact" : {
    "uuid" : "2a4d0f8c-a478-405b-9875-2a6a4474e9c5", // Contact: Michelle Matthieu
    "caption" : "Michelle Matthieu",
    "postalAddress" : {
      "zipcode" : "22123",
      "country" : "Germany",
      "city" : "Hamburg",
      "street" : "An der Wandse 34",
      "name" : "Michelle Matthieu"
    },
    "emailAddresses" : {
      "main" : "michelle@matthieu.example.org"
    },
    "phoneNumbers" : {
      "mobile" : "+49 152 1234567",
      "office" : "+49 40 123456"
    }
  }
} ]

generated on 2026-08-10 01:37:52 for branch